<?php
if (!$this->isSent) {
    echo $this->form;
} else {
    echo '<h2>' . $this->getTranslation('Thanks for contacting us!') . '</h2>';
    echo '<p>'  . $this->getTranslation('Your message was successfully sent and we will reply promptly.') . '</p>';
}